package com.icehand.axon.demo.common.domain;

import lombok.Data;

import java.io.Serializable;

/**
 * @author icehand
 */
@Data
public class ResultBean<T> implements Serializable {
    private static final long serialVersionUID = -5118397715489363820L;

    private int status = 0;
    private T data;
    private String msg = "success";

    public ResultBean(T data) {
        this.data = data;
    }

    public ResultBean(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }
}
